<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="__ADMIN__/images/huibiao.png" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p style="font-size: 18px;font-weight: bold; line-height: 24px;">{$Think.session.logininfo.username}&nbsp;&nbsp;<span style="font-size: 14px; color: #0b97c4;">{$Think.session.logininfo.position_name}</span></p>
                <p style="font-size: 12px;font-weight: normal;line-height: 22px;">{$Think.session.logininfo.group_name}&nbsp;&nbsp;&nbsp;&nbsp;<a href="{:url('admin/logout')}">[退出]</a></p>

            </div>
        </div>
        <!-- search form -->

        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">页面导航</li>
            <!--<li class="treeview{if condition="$con eq 'Admin'"} menu-open{/if}">-->
            <li class="treeview{if condition="$con eq 'AuthGroup '"} menu-open{/if} {if condition="$con eq 'Admin '"} menu-open{/if} {if condition="$con eq 'AuthRule '"} menu-open{/if} ">
                <a href="#">
                    <i class="glyphicon glyphicon-user"></i> <span>用户管理</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu{if condition="$con eq 'AuthGroup'"} block{/if} {if condition="$con eq 'Admin'"} block{/if} {if condition="$con eq 'AuthRule'"} block{/if}">
                    <li class="{if condition="$con eq 'Admin' AND $action eq 'lst'"} active{/if}"><a href="{:url('admin/lst')}"><i class="fa fa-circle-o"></i>管理员管理</a></li>
            <li class="{if condition="$con eq 'AuthGroup' AND $action eq 'lst'  "} active{/if}"><a href="{:url('authGroup/lst')}"><i class="fa fa-circle-o"></i>用户组管理</a></li>
            <li class="{if condition="$con eq 'AuthRule' AND $action eq 'lst'"} active{/if}"><a  href = '{:url('authRule/lst')}'><i class="fa fa-circle-o"></i>权限管理</a></li>
                </ul>
            </li>
            <li class="treeview {if condition="$con eq 'Position'"} menu-open{/if}">
                <a href="#">
                    <i class="glyphicon glyphicon-globe"></i> <span>部门管理</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu {if condition="$con eq 'Position'"} block{/if}">
                    <li class="{if condition="$action eq 'lst'"} active{/if}"><a href="{:url('position/lst')}"><i class="fa fa-circle-o"></i>部门列表</a></li>
                    <li class="{if condition="$action eq 'add'"} active{/if}"><a href="{:url('position/add')}"><i class="fa fa-circle-o"></i>添加部门</a></li>
                </ul>
            </li>
        <li class="treeview {if condition="$con eq 'Area'"} menu-open{/if}">
        <a href="#">
            <i class="fa fa-random"></i> <span>区域管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
        </a>
        <ul class="treeview-menu {if condition="$con eq 'Area'"} block{/if}">
        <li class="{if condition="$action eq 'lst'"} active{/if}"><a href="{:url('area/lst')}"><i class="fa fa-circle-o"></i>区域列表</a></li>
        <li class="{if condition="$action eq 'add'"} active{/if}"><a href="{:url('area/add')}"><i class="fa fa-circle-o"></i>添加区域</a></li>
        </ul>
        </li>
            <li class="treeview {if condition="$con eq 'Category' AND $action eq 'lst'"} menu-open{/if}  {if condition="$con eq 'Business' AND $action eq 'add'"}menu-open{/if}{if condition="$con eq 'Business' AND $action eq 'lst'"}menu-open{/if}">
                <a href="#">
                    <i class="glyphicon glyphicon-folder-open"></i>
                    <span>业务管理</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu {if condition="$con eq 'Category' AND $action eq 'lst'"} block{/if}  {if condition="$con eq 'Business' AND $action eq 'add'"}block{/if}{if condition="$con eq 'Business' AND $action eq 'lst'"}block{/if}">
                    <li class="{if condition="$con eq 'Category' AND $action eq 'lst'"} active{/if}"><a href="{:url('category/lst')}"><i class="fa fa-circle-o"></i>业务类型</a></li>
                    <li class="{if condition="$con eq 'Business' AND $action eq 'add'"} active{/if}"><a href="{:url('business/add')}"><i class="fa fa-circle-o"></i>添加业务</a></li>
                    <li class="{if condition="$con eq 'Business' AND $action eq 'lst'"} active{/if}"><a href="{:url('business/lst')}"><i class="fa fa-circle-o"></i>管理业务</a></li>

                </ul>
            </li>
        <li class="{if condition="$con eq 'Business' AND $action eq 'kanyan'"} active{/if}">
            <a href="{:url('business/kanyan')}">
                <i class="fa fa-fighter-jet"></i>
                现场勘验
            </a>

        </li>
            <li class="treeview {if condition="$con eq 'Business' AND $action eq 'step'"} menu-open{/if}">
                <a href="#">
                    <i class="glyphicon glyphicon-check"></i>
                    <span>业务审批</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu {if condition="$con eq 'Business' AND $action eq 'step'"} block{/if}">

                    <li class="{if condition="$action eq 'step' AND $status==1"} active{/if}"><a href="{:url('business/step',array('status'=>1))}"><i class="fa fa-circle-o"></i>1级审批</a></li>
                    <li class="{if condition="$action eq 'step' AND $status==2"} active{/if}"><a href="{:url('business/step',array('status'=>2))}"><i class="fa fa-circle-o"></i>2级审批</a></li>
                    <li class="{if condition="$action eq 'step' AND $status==3"} active{/if}"><a href="{:url('business/step',array('status'=>3))}"><i class="fa fa-circle-o"></i>3级审批</a></li>
                    <li class="{if condition="$action eq 'step' AND $status==4"} active{/if}"><a href="{:url('business/step',array('status'=>4))}"><i class="fa fa-circle-o"></i>4级审批</a></li>
                    <li class="{if condition="$action eq 'step' AND $status==5"} active{/if}"><a href="{:url('business/step',array('status'=>5))}"><i class="fa fa-circle-o"></i>终审通过</a></li>

                </ul>
            </li>
            <li class="{if condition="$con eq 'Business' AND $action eq 'countdays'"} active{/if}{if condition="$con eq 'Business' AND $action eq 'countweeks'"} active{/if}{if condition="$con eq 'Business' AND $action eq 'countmonth'"} active{/if}{if condition="$con eq 'Business' AND $action eq 'countyears'"} active{/if}">
                <a href="{:url('business/countdays')}">
                    <i class="glyphicon glyphicon-stats"></i>
                    业务统计
                </a>

            </li>




        </ul>
    </section>
    <!-- /.sidebar -->
</aside>